<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<%@ taglib prefix="s" uri="/struts-tags"%>
<%@ page import="java.util.*,com.vcs.domain.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta name="selection" content="jsTab">
<title>Candidate Profile | Jobs in Delhi/NCR | Jobs in Uttar
Pradesh | Jobs in North India</title>
</head>
<body>
<s:if test="#session.js != null">

	<table cellpadding="5" cellspacing="0" border="0" width="100%"
		bordercolor="red">
		<tr>
			<td colspan="2">

			<table align="left" border="0" width="100%">

				<tr>
					<td>
					<h3>Welcome <s:property value="#session.js.firstName"
						default="Guest" /></h3>
					</td>
					<td align="right" bordercolor="green"><s:if
						test='#session.js.resumeName == null || #sesssion.js.resumeName==""'>
						<div style="background-color: yellow;">You have not uploaded
						your resume, Click <a href="uploadresume"><strong>Here</strong></a>
						to upload your resume.</div>
					</s:if> <s:else>
						<a href="uploadresume"><strong>Click Here</strong></a> to upload your latest
					resume. <a href="myresume">Download Resume</a>
						<br />
						<%
							java.util.Date rud = ((Jobseeker) session
											.getAttribute("js")).getResumeUploadDate();
									if (rud != null && rud.getTime() + 86400000 * 60 < new Date().getTime()) {
						%>
						<div style="color: maroon;">Your
						Resume is more than 2 Months old. Please upload your Latest resume
						by <a href="uploadresume"><strong>Clicking Here</strong></a>.</div>

						<%
							} else {
						%>
					<strong>Resume Upload Date:</strong> <s:property
							value="#session.js.resumeUploadDate" default="" />
						<%
							}
						%>
					</s:else></td>
				</tr>
			</table>
			</td>

		</tr>
		<tr>
			<td colspan="3" bgcolor="#bfbfbf"
				style="color: black; font-weight: bold;">Personal Profile</td>
		</tr>
		<tr>
			<td>Name:</td>
			<td><strong><s:property value="#session.js.firstName"
				default="Content not available" /> <s:property
				value="#session.js.lastName" default="Content not available" /></strong>&nbsp;&nbsp;&nbsp;
			<s:if test="#session.js.gender != null && #session.js.gender == true">
					(Male)
				</s:if> <s:else>
					(Female)
				</s:else></td>
		</tr>
		<tr>
			<td>Email:</td>
			<td><s:property value="#session.js.email"
				default="Content not available" /></td>
		</tr>
		<tr>
			<td width="125">Mobile Number:</td>
			<td><s:property value="#session.js.mobileNumber"
				default="Content not available" /></td>
		</tr>
		<tr>
			<td>Current Location</td>
			<td>
			<%
				List<Location> locList = (List<Location>) application
							.getAttribute("locationList");
					int id = ((Jobseeker) session.getAttribute("js"))
							.getCurrentLocation();

					String curLocation = null;
					for (Location loc : locList) {
						if (loc.getId() == id) {
							curLocation = loc.getName();
						}
					}
			%> <%=curLocation%></td>
		</tr>
		<tr>
			<td>Preferred Location</td>
			<td>
			<%
				//List<Location> locList = (List<Location>) application.getAttribute("locationList");
					int preferredLocId = ((Jobseeker) session.getAttribute("js"))
							.getPreferredLocation();

					String preferredLocation = null;
					for (Location loc : locList) {
						if (loc.getId() == preferredLocId) {
							preferredLocation = loc.getName();
						}
					}
			%> <%=preferredLocation%></td>
		</tr>
		<tr>
			<td></td>
			<td></td>
		</tr>
		<tr>
			<td colspan="3" bgcolor="#bfbfbf"
				style="color: black; font-weight: bold;">Professional Profile</td>
		</tr>
		<tr>
			<td><label>Total Experience</label></td>
			<td><s:property value="#session.js.expYears" default="0" />
			Years <s:property value="#session.js.expMonths" default="0" />
			Months</td>
		</tr>
		<tr>
			<td><label>Skills</label></td>
			<td><s:property value="#session.js.keySkills" default="0" /></td>
		</tr>
		<tr>
			<td><label>Current Employer</label></td>
			<td><s:property value="#session.js.currentEmployer"
				default="not found" /></td>
		</tr>
		<tr>
			<td><label>Previous Employer</label></td>
			<td><s:property value="#session.js.previousEmployer"
				default="not found" /></td>
		</tr>
		<tr>
			<td><label>Designation</label></td>
			<td><s:property value="#session.js.designation"
				default="not found" /></td>
		</tr>
		<tr>
			<td colspan="3" bgcolor="#bfbfbf"
				style="color: black; font-weight: bold;">Academic Profile</td>
		</tr>
		<tr>
			<td><label>Highest Qualification</label></td>
			<td><s:property
				value="#application.qualificationList[#session.js.highestQualification].name"
				default="not found" /></td>
		</tr>
		<tr>
			<td><label>Year of Passing</label></td>
			<td><s:property value="#session.js.yearOfPassing"
				default="not found" /></td>
		</tr>

		<tr>
			<td><label>Specialization</label></td>
			<td><s:property value="#session.js.specialization"
				default="Not Available" /></td>
		</tr>
		<tr>
			<td><label>Institute</label></td>
			<td><s:property value="#session.js.institute"
				default="not found" /></td>
		</tr>
		<tr>
			<td colspan="2"><s:a href="edit">Edit Profile</s:a></td>
		</tr>
	</table>
</s:if>
<s:else>
	<h3>Candidates Login here to see your profile</h3>
	<table border="0" cellpadding="0" cellspacing="0">
		<tr>
			<td>Candidates can Login here and avail our <span
				style="color: red;">free services</span>. By Logging in here
			candidates will be able to post jobs and manage their profile. We
			will follow up once you show your interest in the job that suits your
			career interests.</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
		<tr>
			<td>&nbsp;</td>
		</tr>
	</table>
	<jsp:include page="jobseekersLoginForm.jsp"></jsp:include>
</s:else>
</body>
</html>